#!/usr/bin/env python

import sys
import urllib2

AUTODJ_NEXT_URL = 'https://localhost/autodj/next'

try:
    res = urllib2.urlopen(AUTODJ_NEXT_URL)
except urllib2.URLError:
    sys.exit(1)
if not res:
    sys.exit(1)
print res.read()
res.close()
